package org.phantom.securityframework.datapermission.internal;

import java.lang.annotation.Annotation;

import javax.annotation.Resource;

import org.phantom.securityframework.datapermission.DataProvider;
import org.phantom.securityframework.datapermission.DimensionQuery;
import org.phantom.securityframework.datapermission.DimensionQueryCreator;
import org.phantom.securityframework.api.exception.AnnotationConfigureException;


public abstract class AbstractDataProvider implements DataProvider{

	@Resource
	private DimensionQueryCreator defaultQueryCreator = null;
	@Override
	public DimensionQuery createDimensionQuery(Object[] args,Annotation anno) {
		return defaultQueryCreator.createQuery(args);
	}
	public boolean check(Annotation anno) throws AnnotationConfigureException{
		return true;
	}
}
